<%-- 
    Document   : subCategoryProducts
    Created on : Jun 26, 2012, 11:04:00 AM
    Author     : Owner
--%>

<%--
<%if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 0) {%>
<%@include file="/jsp/top.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 1) {%>
<%@include file="/jsp/userTop.jsp"%>
<%} else if (Long.parseLong(String.valueOf(session.getAttribute("loginRoleId"))) == 2) {%>
<%@include file="/jsp/adminTop.jsp"%>
<%}%>--%>

<%@include file="/jsp/top.jsp"%>

<html>
    <head>        
        <title>Sub Category Products</title>        
    </head>
    <body>
        <div class="clear"></div>
        <table cellspacing="5px" width="100%" align="center">
            <tr>
                <td>
                    <table cellspacing="5px" width="100%" align="center">
                        <tr>
                            <td style="vertical-align: top;" width="20%">
                                <%@include file="/jsp/right.jsp" %></td>
                            <td style="vertical-align: top;" width="80%">
                                <table align="center" border="1" cellspacing="10px" width="100%">
                                    <logic:present name="subCategoryName" scope="request">
                                        <tr>
                                            <td>
                                                <div class="page-title"><h1><bean:write name="subCategoryName" /></h1></div>
                                            </td>
                                        </tr>
                                    </logic:present>                                    
                                    <tr>
                                        <td>
                                            <div style="float: left; width: 100%"  id="page_container" >
                                                <div align="center" class="page_navigation"></div>
                                                <ul class="content">
                                                    <logic:present name="productList" scope="request">
                                                        <logic:iterate id="products" name="productList" scope="request">
                                                            <li>
                                                                <div style="float: left;width: 250px; height: 325px;">
                                                                    <ul style="text-align: center">
                                                                        <li style="height: 155px;">
                                                                            <a href="./product.do?action=showProductDetails&productId=<bean:write name="products" property="productId"/>&productName=<bean:write name="products" property="productName"/>">
                                                                                <img alt="<bean:write name="products" property="productName"/>" src="products/<bean:write name="products" property="productSmallImageName"/>" width="150px" height="150px"/></a>
                                                                        </li>
                                                                        <li style="height: 45px;">
                                                                            <a href="./product.do?action=showProductDetails&productId=<bean:write name="products" property="productId"/>&productName=<bean:write name="products" property="productName"/>">
                                                                                <bean:write name="products" property="productName"/></a>
                                                                        </li>
                                                                        <li>
                                                                            Rs. <bean:write name="products" property="productPrice"/>
                                                                        </li>
                                                                        <li>
                                                                            <a href="./product.do?action=addToCart&direct=1&productId=<bean:write name="products" property="productId"/>"><%--&productName=<bean:write name="products" property="productName"/>">--%>
                                                                                <img alt="Buy Now" src="images/buynow.png"/></a><br/>
                                                                            <a href="./product.do?action=showWishList&productId=<bean:write name="products" property="productId"/>&productName=<bean:write name="products" property="productName"/>">Add to WishList</a>
                                                                        </li>
                                                                    </ul>
                                                                </div>
                                                            </li>
                                                        </logic:iterate>
                                                    </logic:present>
                                                </ul>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td><%@include file="/jsp/footer.jsp" %></td>
            </tr>
        </table>
    </body>
</html>
